﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMIS.FrameWork;
using HMIS.Infrastructure.Core.Authority;

namespace HMIS.Infrastructure.Facade.Authority
{
	public interface IAuthorityFacade : IDomainFacade
	{
		bool Validate(string loginName, string pwd);
		bool ValidateById(string userId, string pwd);
		HospUser GetHospUserByName(string loginName);
		IList<MenuNode> GetMenusByUserId(string userId);
		IList<MenuNode> GetAllMenusByUserId(string userId);
		IList<ActionPermission> GetActionsByUserId(string userId);
		IList<ActionPermission> GetAllActionPermission();
		/// <summary>
		/// 修改用户密码
		/// </summary>
		/// <param name="userId">用户Id</param>
		/// <param name="oldPwd">旧密码</param>
		/// <param name="newPwd">新密码</param>
		void ChangeUserPwd(string userId, string oldPwd, string newPwd);
	}
}
